<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html;charset=UTF-8" />
	<link rel="stylesheet" href="__PUBLIC__/css/inc.css" />
	<link rel="stylesheet" href="__PUBLIC__/css/ico.css" />
	<jquery/>
	<script type="text/javascript" src='__PUBLIC__/js/extend.js'></script>
	<script type="text/javascript">
		var postUrl = '__CONTROL__/selectCate';
	</script>
	<script type="text/javascript" src='__CONTROL_TPL__/js/js.js'></script>
	<title>商品列表</title>
</head>
<body>
	<div class="Menu">
		<a href="{|U:'index'}" class="act">商品管理</a>
		<a href="{|U:'add'}" onclick='return selectCate(this);'>添加商品</a>
		<a href="{|U:'updateCache'}">更新缓存</a>
	</div>
	<div class="p10">
		<table class="table">
			<tr class=' white fm f14'>
				<th class="pct5 tsblack tc">gid</th>
				<th class="tsblack">cid</th>
				<th class="tsblack">图片</th>
				<th class="tsblack tl">所属栏目</th>
				<th class="tsblack tl">商品名称</th>
				<th class="tsblack">价格</th>
				<th class="pct30 tsblack tc">操作</th>
			</tr>
			<foreach from="$goods" value="$g">
				<tr>
					<td class='tc'><span class="b gray2">{$g.gid}</span></td>
					<td class='tc'>{$g.cid}</td>
					<td class='tc'>
						<if value="$g.list_pic">
							<div class="showPic rel">
								<img src="__ROOT__/{$g.list_pic}" height='30' class='' />
							</div>
						</if>
					</td>
					<td class='tl'>{$g.cname}</td>
					<td class='tl'>{$g.gname|mb_substr:0,50,'utf8'}</td>
					<td class='tc'>{$g.price}</td>
					<td class='tc'>
						<a href="{|U:'edit?gid='}{$g.gid}" class="dib p5 a rad3 bgteal white">修改</a>
						<a href="{|U:'del?gid='}{$g.gid}" onclick='return del();' class="dels dib p5 a rad3 bgred2 white">删除</a>
					</td>
				</tr>
			</foreach>
		</table>
		<div class="page">
			{$page}
		</div>
	</div>
</body>
</html>